// 定义用户记录的类型  
export interface UserRecord {
  id?: number | string;
  createTime?: string;
  updateTime?: string;
  username: string;
  password: string;
  name?: string;
  phone?: string | null; // phone 字段可能是字符串或 null  
  roleName?: string; // 注意：空字符串也是有效的字符串  
}

//把UserRecord转为数组
export type userRecordObj = UserRecord[]

// 定义返回数据的类型  
export interface ResponseData {
  records: UserRecord[];
  total: number;
  size: number;
  current: number;
  orders: any[];
  optimizeCountSql: boolean;
  hitCount: boolean;
  countId?: string | null;
  maxLimit?: number | null;
  searchCount: boolean;
  pages: number;
}

// 定义整个响应的类型  
export interface ApiResponse {
  code: number;
  message: string;
  data: ResponseData;
  ok: boolean;
}


